<?php

/*
 *Form for the search engine.
 * 
 * @author Dominik Imsirovic
 */

 class Application_Form_Search extends Zend_Form{
    
     public function __construct($options = null) {
        parent::__construct($options);
        
        
        // Set the method for the display form to POST
        $this->setMethod('post');
        
        //Add text field to enter search item
        $this->addElement('text', 'search_item', array(
            'label' => 'Your search item:',
            'required' => false));
        
        //Add search button
        $this->addElement('submit', 'search', array(
            'label' => 'Search!',
            'ignore' => true));
        
     }
    
}
?>
